OBJECTS		= root.o server.o
LIBRARIES	= 
PROGRAMS	= root server
CFLAGS		+=-I/usr/local/opt/openssl/include -I/usr/local/Cellar/json-c/0.12/include/json-c -I/usr/local/Cellar/mariadb-connector-c/2.2.2/include/mariadb/ -I/usr/local/include/mariadb/
LDFLAGS		+=-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/json-c/0.12/lib -L/usr/local/Cellar/mariadb-connector-c/2.2.2/lib/mariadb/ -L/usr/local/lib/mariadb/
.PHONY:         all clean

# Default target: build everything.
all:             $(OBJECTS) $(LIBRARIES) $(PROGRAMS)

# Clean up build products.
clean:
	rm -f *.o $(LIBRARIES) $(PROGRAMS)

root:		LDLIBS += -lssl -lcrypto
server:		LDLIBS += -lssl -lcrypto -ljson-c -lmysqlclient -lmariadbclient